package com.darrenchan.leetcode;

/**
 * @Desc
 * @Author chenchi03
 * @CreateTime 2020-02-22 19:09
 */
public class LCP1 {
    public int game(int[] guess, int[] answer) {
        int n = guess.length;
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            if(guess[i] == answer[i]) {
                cnt++;
            }
        }
        return cnt;
    }
}
